<template>
  <ul>
    <li>
      {{todo.title}}
      <button @click="removeid($event,todo.id)">remove</button>
    </li>
  </ul>
</template>

<script>
export default {
  data() {
    return {

    };
  },
  props: ["todo"],

  methods: {
    removeid(a,b){
      console.log(a,b);
      this.$emit('deleteitem',b)

    }
  
  },
};
</script>

<style></style>
